/*
 * @Author: xiaosihan 
 * @Date: 2022-07-10 13:26:35 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-02-27 12:01:12
 */
import { Vector3, Euler } from "three";

//项目
export type Project = {
    CustName: string,
    ProjectCode: string,
    ProjectName: string,
    RespPerson: string,
    _AutoID: string,
    MdTitle: string
}

// 楼栋的数据
export type BuildData = {
    boliColor: string,
    buildId: string,
    buildNo: string,
    kuangColor: string,
    mifjColor: string,
    orderCode: string,
    saifengColor: string,
    shanColor: string,
}

//每栋楼的数据
export type BuildWindowData = {
    // 东南西北
    // north, south, east and west
    east: { boli: number, kuang: number, mifj: number, num: number, saifeng: number, shan: number, mdDisp_kuang: number, mdDisp_saifeng: number, mdDisp_shan: number, mdDisp_boli: number, mdDisp_mifj: number, sum_kuang: number, sum_saifeng: number, sum_shan: number, sum_boli: number, sum_mifj: number, },
    end: { boli: number, kuang: number, mifj: number, num: number, saifeng: number, shan: number, mdDisp_kuang: number, mdDisp_saifeng: number, mdDisp_shan: number, mdDisp_boli: number, mdDisp_mifj: number, sum_kuang: number, sum_saifeng: number, sum_shan: number, sum_boli: number, sum_mifj: number, },
    floorId: string,
    floorNo: string,
    north: { boli: number, kuang: number, mifj: number, num: number, saifeng: number, shan: number, mdDisp_kuang: number, mdDisp_saifeng: number, mdDisp_shan: number, mdDisp_boli: number, mdDisp_mifj: number, sum_kuang: number, sum_saifeng: number, sum_shan: number, sum_boli: number, sum_mifj: number, },
    orderCode: number,
    south: { boli: number, kuang: number, mifj: number, num: number, saifeng: number, shan: number, mdDisp_kuang: number, mdDisp_saifeng: number, mdDisp_shan: number, mdDisp_boli: number, mdDisp_mifj: number, sum_kuang: number, sum_saifeng: number, sum_shan: number, sum_boli: number, sum_mifj: number, },
    west: { boli: number, kuang: number, mifj: number, num: number, saifeng: number, shan: number, mdDisp_kuang: number, mdDisp_saifeng: number, mdDisp_shan: number, mdDisp_boli: number, mdDisp_mifj: number, sum_kuang: number, sum_saifeng: number, sum_shan: number, sum_boli: number, sum_mifj: number, },
}

// 每层窗户的型号
export type WindowTypeData = {
    floorId: string,
    floorNo: string,
    orderCode: number,
    winList: Array<{
        id: string,
        color: string,
        name: string,
        east: number,
        south: number,
        west: number,
        north: number,
        end: number,
        url: string
    }>,
}

// 窗户数据
export type WindowData = {
    name: string,
    url: string,
    color: string,
    installState: string,
    installColor: string,
    position: Vector3,
    rotation: Euler,
}

